#ifndef WORKFLOWDIALOG_H
#define WORKFLOWDIALOG_H

#include <QDialog>
#include<QTableWidgetItem>
#include "analytedatabase.h"

namespace Ui {
class WorkFlowDialog;
}

class WorkFlowDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit WorkFlowDialog(QWidget *parent = 0);
    ~WorkFlowDialog();
    
    void LoadData();
private slots:
    void on_pushButton_AddFlow_clicked();

    void on_pushButton_DeleteFlow_clicked();

    void on_pushButton_AddState_clicked();

    void on_pushButton_InsetState_clicked();

    void on_pushButton_DeleteState_clicked();

    void on_tableWidget_itemChanged(QTableWidgetItem *item);

    void on_listWidget_currentRowChanged(int currentRow);

    void on_pushButton_Ok_clicked();

    void on_pushButton_Cancle_clicked();

    void on_tableWidget_pressed(const QModelIndex &index);

private:
    Ui::WorkFlowDialog *ui;

    WorkFlow workFlow;
    QStringList list1;//
    QStringList list2;
};

#endif // WORKFLOWDIALOG_H
